<template>
  <!-- 对话框配置项: 关闭时销毁 -->
  <el-dialog
    v-model="dialogs.user.logout"
    title="Warning"
    width="400px"
    destroy-on-close
  >
    <div>内容</div>
    <template #footer>
      <span class="dialog-footer">
        <el-button @click="dialogs.user.logout = false">取消</el-button>
        <el-button type="primary" @click="dialogs.user.logout = false">
          确定
        </el-button>
      </span>
    </template>
  </el-dialog>
</template>
<script setup>
import { useDialogsStore } from '@/stores/dialogs' // 使用pinia
const { dialogs } = useDialogsStore()
</script>
<style scoped></style>
